package com.ljm.sys.org.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
    * 机构
    * </p>
 *
 * @author HuamingChen
 * @since 2020-10-20
 */

@ApiModel(value="SysOrgDto对象", description="机构")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysOrgDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "版本号")
    private Long version;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String editor;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime editTime;

    @ApiModelProperty(value = "状态：-1注销、1正常、0冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除0否1是（用于逻辑删除）")
    private Integer isDelete;

    @ApiModelProperty(value = "机构id")
    private String orgId;

    @NotNull(message = "机构名称不能为空,请输入")
    @ApiModelProperty(value = "机构名称")
    private String orgName;

    @ApiModelProperty(value = "组织机构代码")
    private String orgCode;

    @ApiModelProperty(value = "税务号")
    private String taxNo;

    @ApiModelProperty(value = "营业执照编号")
    private String licenseNo;

    @ApiModelProperty(value = "联系方式")
    private String mobile;

    @ApiModelProperty(value = "邮件")
    private String email;

    @ApiModelProperty(value = "联系详细地址")
    private String adderss;

    @ApiModelProperty(value = "logo")
    private String logo;

    @ApiModelProperty(value = "机构简介")
    private String orgIntroduce;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "用户信息")
    private SysOrgUserDto userInfo;

}
